package com.tingyuge.base.structrue.node;

/**
 * @Created by xiaodao
 */
public class Main {
    public static void main(String[] args) {
//        LinkedList<Integer> linkedList =new LinkedList<>();
//
//        for (int i = 0; i <5 ; i++) {
//            linkedList.addFirst(i);
//        }
//        System.out.println(linkedList.toString());
//        linkedList.add(777,2);
//        System.out.println(linkedList.toString());
//        linkedList.removeLast();
//        linkedList.removeFirst();
//        System.out.println(linkedList);

        LinkedListStack<Integer> stack = new LinkedListStack<>(new LinkedList<>());
        for (int i = 0; i <5 ; i++) {
            stack.push(i);

        }

        System.out.println(stack.toString());
        System.out.println(stack.pop());
        System.out.println(stack.toString());


    }
}
